import request from '@/utils/request';

// 查询订单列表
export function listOrder(query) {
    return request({
        url: '/biz/order/list',
        method: 'get',
        params: query
    });
}

// 查询订单详细
export function getOrder(id) {
    return request({
        url: '/biz/order/' + id,
        method: 'get'
    });
}

// 新增订单
export function addOrder(data) {
    return request({
        url: '/biz/order',
        method: 'post',
        data: data
    });
}

// 修改订单
export function updateOrder(data) {
    return request({
        url: '/biz/order',
        method: 'put',
        data: data
    });
}

// 删除订单
export function delOrder(id) {
    return request({
        url: '/biz/order/' + id,
        method: 'delete'
    });
}

// 导出订单
export function exportOrder(query) {
    return request({
        // url: "secoo/exportOrder",/biz/order/export
        url: '/biz/order/export',
        method: 'get',
        params: query
    });
}
// 导入订单
export function importOrder(data) {
    return request({
        url: '/secoo/saveOuterOrder',
        method: 'post',
        data: data
    });
}
// 确认导入订单
export function toImportOrder(data) {
    return request({
        url: '/secoo/saveOuterOrder',
        method: 'post',
        data: data
    });
}

// 导出订单
export function submitSinfo(data) {
    return request({
        url: '/secoo/exportOrderTemplate',
        method: 'post',
        data: data
    });
}

// 下载模板
export function update(data) {
    return request({
        url: ' /secoo/exportOrderTemplate',
        method: 'post',
        data: data
    });
}

export function submitWuliu(data) {
    return request({
        url: '/web/submitWuliu',
        method: 'post',
        data: data
    });
}


export function btnshouhou(data) {
    return request({
        url: '/web/submitSinfo',
        method: 'post',
        data: data
    });
}
